package com.example.yywebflux01;

import java.math.BigDecimal;

public class StockPrice {
    private String symbol;
    private BigDecimal price;
    private long timestamp;

    // Getters and Setters

    public StockPrice(String symbol, BigDecimal price, long timestamp) {
        this.symbol = symbol;
        this.price = price;
        this.timestamp = timestamp;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
}

